//
//  CourseCell.h
//  MetenEnglish
//
//  Created by rj-mayong on 14/11/28.
//  Copyright (c) 2014年 Shenzhen Securities Information Co., Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CourseModel.h"

typedef NS_ENUM(NSInteger, CELL_TYPE) {
    CELL_COURSELIST = 0,    // 可订课程
    CELL_RESERVEDLIST       // 已订课程
};

@protocol CourseCellDelegate <NSObject>

- (void)clickedCourseButton:(CourseModel *)courseModel;

@end

@interface CourseCell : UITableViewCell

@property (nonatomic, strong) UILabel *nameLabel;
@property (nonatomic, strong) UILabel *teacherLabel;
@property (nonatomic, strong) UILabel *reservedNumLabel;
@property (nonatomic, strong) UILabel *queuedNumLabel;
@property (nonatomic, strong) UILabel *timeLabel;
@property (nonatomic, strong) UILabel *addressLabel;
@property (nonatomic, strong) UIButton *statusButton;

@property (nonatomic, strong) CourseModel *courseModel;

@property (nonatomic, assign) id<CourseCellDelegate> delegate;

/**
 * @ 初始化cell
 */
- (instancetype)initWithStyle:(UITableViewCellStyle)style
              reuseIdentifier:(NSString *)reuseIdentifier
                     cellType:(CELL_TYPE)cellType;

/**
 * @ 设置cell显示内容
 */
- (void)setCellContent:(CourseModel *)course;

@end
